﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ggks.aspx.cs" Inherits="weikebuluo.web.admin.actives.ggks" %>

<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1"><title>
	IdeaSoft软件
</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="Keywords" content="IdeaSoft软件"><meta name="Description" content="IdeaSoft软件微信">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/bootstrap.responsive.min.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/style.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/themes.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/todc_bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/inside.css">
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/resource.css">
    <link rel="stylesheet" type="text/css" href="/Scripts/daterangepicker/daterangepicker.css">
    <script type="text/javascript" src="/Scripts/JQuery.min.js"></script>
    <script type="text/javascript" src="/Scripts/Bootstrap.min.js"></script><style type="text/css">.dropdown-submenu:hover>.dropdown-menu{display:none}</style>
    <script type="text/javascript" src="/Scripts/JQuery.form.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.methods.js"></script>
    <script type="text/javascript" src="/Scripts/resource.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.cookie.js"></script>
    <script type="text/javascript" src="/Scripts/Inside.js"></script>
    <script type="text/javascript" src="/Scripts/UploadImg.js"></script><script type="text/javascript" src="/Scripts/ajaxupload.3.5.js"></script>
    <script type="text/javascript" src="/Scripts/daterangepicker/moment_min.js"></script>
    <script type="text/javascript" charset="gbk" src="/Scripts/daterangepicker/daterangepicker.js"></script>
    <!--[if IE 7]>
            <link href="/css/Bootstrap/font_awesome_ie7.css" rel="stylesheet" />
        <![endif]-->
    <!--[if lte IE 8]>
            <script src="/Scripts/excanvas_min.js"></script>
        <![endif]-->
    <!--[if lte IE 9]>
            <script src="/Scripts/watermark.js"></script>
        <![endif]-->
<link href="/Scripts/KindEditor/themes/simple/simple.css" rel="stylesheet"></head>
<body>
    <div id="main">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <div class="span10">
                                <h3>
                                    <i class="icon-edit"></i>
                                    添加活动</h3>
                            </div>
                            <div class="span2">
                                <a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                        </div>
                        <form novalidate="novalidate" action="ggks.aspx" method="post" class="form-horizontal form-validate">
                        <input name="action" value="save" style="display: none;">
                        <%if (!string.IsNullOrEmpty(Request.QueryString["id"]))
                          { %>
                          <input name="id" value="<%=Request.QueryString["id"] %>" style="display: none;">
                          <%} %>
                        <div class="box-content">
                            <div class="control-group">
                                <label class="control-label">
                                    图标：</label>
                                <div class="controls">
                                    <div class="i-cont" style="width: 150px;">
                                        <img alt="" src="<%=ggks_url1 %>" id="icon_i" style="width: 34px;">
                                        <input id="icon" name="icon" value="<%=ggks_url1 %>" type="hidden">
                                        <button id="btn_Icon" href="javascript:;" class="btn">
                                            上传图标</button>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <label for="insertimage" class="control-label">
                                    图文封面:</label>
                                <div class="controls">
                                    <img id="img_bg"  type="img" src="<%=ggks_url2 %>" style="max-height: 50px;">
                                    <input id="picurl" name="picurl" value="<%=ggks_url2 %>" class="input-medium" type="hidden">
                                    <a class="btn insertimage">选择封面</a>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label" for="">
                                    活动时间</label>
                                <div class="controls">
                                    <div class="input-prepend">
                                        <span class="add-on"><i class="icon-calendar"></i></span>
                                        <input name="time" style="height:30px;" readonly="readonly" id="time" class="daterangepick input-xlarge" data-rule-required="true" type="text" value="<%=ggks_time1 %> - <%=ggks_time2 %>">
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">
                                        下一步</button>
                                </div>
                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="fallr-overlay">
    </div>
</body>
</html>
<script type="text/javascript">
    window.document.onkeydown = function (e) {
        if ('' == document.activeElement.id) {
            var e = e || event;
            var currKey = e.keyCode || e.which || e.charCode;
            if (8 == currKey) {
                return false;
            }
        }
    };
    $(function () {
        $("#btn_Icon").initUpload({ showID: 'icon_i', hideID: 'icon', savePath: 'ggk&dir=image' });
        $("a.insertimage").initUpload({ showID: 'img_bg', hideID: 'picurl', savePath: 'ggk&dir=image' });
    })
</script>
